package com.yq.day18._06string;

/**
 * @author 3307235355@qq.com
 * @since 2022/06/19 10:29
 */
public class Demo01 {
    public static void main(String[] args) {
        String phoneNum = "13529677896";
        String start = phoneNum.substring(0, 3);
        String[] standard = {"135","136","137","138"};
        for (int i = 0; i < standard.length; i++) {
            String s = standard[i];
            if (start.equals(s)){
                System.out.println("手机号正确");
            }
        }
    }
}
